
<table class="products-head">
               <tr>
                  <td   class="one" >
                  <?= $category_title ?>
                  </td>
                  <td class="two">
                  
                  Всички серии за <?= count($projectsAll).'aaa'/*$category_title*/;?>
                  </td>
                  <td class="three"><?php echo $page_links;?>
                  
                  </td>
               </tr>
             </table>
             <table class="products" >
               <tr>
                  <td class="products-left">
                      <ul class="products-ul">
                          <?php if (isset($projectsAll) && !empty($projectsAll)) {?>
                            <?php foreach($projectsAll as $projectsA):    ?>
                            	<li><a href="<?= site_url('home/productDetails/'.$projectsA['id'])?>"> <?=$projectsA['title'] ?> </a></li>
                            <?php endforeach;?>
                          <?php }?>
                          
                       </ul>
                  </td>
                  
                  <td style="vertical-align:top">
                  <div id="gallery">
                       
                    <?php if (isset($projects) && !empty($projects)) {?>
                    <?php foreach($projects as $project):;    ?>
                       <div class="thumb">
                       		<a href="<?= site_url('home/projectDetails/'.$project['id'])?>">
                             <table border="0" align="center">
                                <tr>
                                   <td colspan="2">
                                    <!--    <img src="<?=base_url()?>images/testImage.jpg" /> -->
                                      <img src="<?=galery_path_url(1).'/'.$project['id'].'/thumbs2/'.$project['pic'] ?>" />
                                   </td>
                                </tr>
                                <tr>
                                   <td style="font-family:Arial Regular;font-size:12px; color:white;text-align:left;">
                                      <?=$project['title']?>
                                   </td>
                                </tr>
                             </table>
                             </a>
                       </div>
                         
	   
                    <?php endforeach;?>
                    <?php }?>
                  
                      
                   </div>
                    
                    
	 
                  </td>
               </tr>
             </table>